//
//  MSFeedBackVC.m
//  MS
//
//  Created by Yuan on 13-4-14.
//  Copyright (c) 2013年 He Yuan. All rights reserved.
//

#import "MSFeedBackVC.h"

@interface MSFeedBackVC ()

@end

@implementation MSFeedBackVC

- (id)init
{
    self = [super init];
    if (self)
    {
        self.maxCount = FEEDBACK_MAX_WORDS;
    
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self setTitle:HYLocalizedString(@"用户反馈") showBackButton:YES];
    
    [self setRightItem:HYLocalizedString(@"提交")];
    
    self.txtView.placeholder = HYLocalizedString(@"欢迎您提出意见或建议，我们会把产品做得更好！谢谢！");
    
	// Do any additional setup after loading the view.
}



- (void)configureViews:(BOOL)animation
{
    [super configureViews:animation];
    
}

-(void)rightBarButtonItemAction:(UIButton *)btn
{
    NSString *feedback =  [MSTool trimmingWhiteSpaceCharacter:self.txtView.text];
    if([feedback length]<1)return [MSTool showAlert:HYLocalizedString(@"请先填写反馈的内容!")];
    [MSTool showAlertTitle:HYLocalizedString(@"反馈成功") message:HYLocalizedString(@"您的反馈已接收到，感谢您对我们的支持!,我们会做得更好.")];
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
